package com.yeziji.dataCenter.common.msg;

import com.yeziji.common.CommonErrorEnum;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 数据中心异常消息
 *
 * @author hwy
 * @since 2024/10/26 14:01
 **/
@Getter
@AllArgsConstructor
public enum DataCenterErrorMsg implements CommonErrorEnum {
    TEMPLATE_NOT_EXISTS(ERROR, "data-center-error.template-not-exists", "data-center-show-error.template-not-exists"),
    INIT_CLOUD_DATABASE_FAILED(ERROR, "data-center-error.init-cloud-database-failed", "data-center-show-error.init-cloud-database-failed"),
    NOT_SUPPORTED_DB_TYPE(ERROR, "data-center-error.not-supported-db-type", "data-center-show-error.not-supported-db-type"),
    SYNC_DATA_FAILED(ERROR, "data-center-error.sync-data-failed", "data-center-show-error.sync-data-failed"),
    DATA_VERSION_CONFLICT(ERROR, "data-center-error.data-version-conflict", "data-center-show-error.data-version-conflict"),
    ;

    private final int code;
    private final String desc;
    private final String showMsg;
}
